package com.Brave.manager.Demo04;

import com.Brave.manager.Demo03.MyThread;

public class Demo04 {
    public static void main(String[] args) {
        MyThread m1 = new MyThread();
        MyThread m2 = new MyThread();

        m1.setName("飞机1");
        m2.setName("轮船2");

        MyThread m3 = new MyThread("汽车3");
        MyThread m4 = new MyThread("高铁4");

        m1.start();
        m2.start();
        m3.start();
        m4.start();

    }
}
